package com.tuanzi.loan.business.repository.system.custom;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.tuanzi.loan.business.entity.system.Role;
import com.tuanzi.loan.vo.request.system.RoleSearchRequest;
import com.tuanzi.loan.vo.response.system.RoleSearchResponse;

/**
 * @author Ray 2017/09/21
 */

public interface RoleRepositoryCustom {

	Page<RoleSearchResponse> list(RoleSearchRequest searchRequest, Pageable pageable);

	List<Role> findAllByUserId(String userId);

	List<Role> findAllByAccount(String account);

	Long countByAccountAndRoleCode(String account, String roleCode);
}
